CREATE TABLE [dbo].[TMSABA_MENS]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NOT NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NOT NULL,
[AA_BNCO] [dbo].[TD_VC_004] NOT NULL,
[MM_BNCO] [dbo].[TD_VC_002] NOT NULL,
[UL_CORR_INGR] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMSABA_ME__UL_CO__15B0212B] DEFAULT ((0)),
[UL_CORR_EGRE] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMSABA_ME__UL_CO__16A44564] DEFAULT ((0)),
[IM_SALD_INIC] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSABA_ME__IM_SA__1798699D] DEFAULT ((0)),
[UL_CORR_INEG] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMSABA_ME__UL_CO__188C8DD6] DEFAULT ((0)),
[IM_EGRE] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSABA_ME__IM_EG__1980B20F] DEFAULT ((0)),
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[IM_INGR] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSABA_ME__IM_IN__1A74D648] DEFAULT ((0)),
[ST_CONC] [dbo].[TD_VC_001] NULL,
[TI_SITU_CONC] [dbo].[TD_VC_003] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMSABA_ME__CO_US__1B68FA81] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMSABA_ME__FE_US__1C5D1EBA] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMSABA_ME__CO_US__1D5142F3] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMSABA_ME__FE_US__1E45672C] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMSABA_MENS] ADD CONSTRAINT [PK__TMSABA_M__1D1434216F2B50E7] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC], [AA_BNCO], [MM_BNCO]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMSABA_MENS] ADD CONSTRAINT [FK__TMSABA_MENS__1570F560] FOREIGN KEY ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC]) REFERENCES [dbo].[TMCNTA_BANC] ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC])
GO
